//
//  AppLogic.m
//  FruitHelper
//
//  Created by 赵隆杰 on 2021/12/10.
//

#import "AppLogic.h"
#import "MainViewController.h"

@implementation AppLogic

+ (instancetype)sharedInstance {
    static AppLogic *instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[AppLogic alloc] init];
    });
    return instance;
}

- (instancetype)init {
    self = [super init];
    if (self) {
        [LocalData saveFirstData];
        
    }
    
    return self;
}

- (void)rootControllerSwitchToMainVC {
    MainViewController *mainVC = [MainViewController new];
    [UIApplication sharedApplication].delegate.window.rootViewController = mainVC;
}


@end
